package com.hksj.Intelligentmanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hksj.Intelligentmanagement.dto.RoomEnvQuery;
import com.hksj.Intelligentmanagement.dto.SchedulingQuery;
import com.hksj.Intelligentmanagement.dto.SurgicalAndEnvQuery;
import com.hksj.Intelligentmanagement.dto.SurgicalQuery;
import com.hksj.Intelligentmanagement.entity.SurgicalEntity;
import com.hksj.Intelligentmanagement.entity.WnReadHandNumbness;
import com.hksj.Intelligentmanagement.vo.RoomEnvVO;
import com.hksj.Intelligentmanagement.vo.RoomSchedulingVO;
import com.hksj.Intelligentmanagement.vo.RoomSurgicalAndEnvVO;
import com.hksj.Intelligentmanagement.vo.SurgicalVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 手术表信息 dao 接口
 * @author chenxingqing
 */
public interface SurgicalMapper extends BaseMapper<SurgicalEntity> {

    List<SurgicalVo> listAllSurgical(@Param("time")String time, @Param("masterDoctorName")String masterDoctorName, @Param("patientName")String patientName, @Param("schedulingStatus")Integer schedulingStatus, @Param("regionId") String regionId, @Param("ids") List<String> ids);

    List<SurgicalVo> listScheduledSurgical(@Param("time")String time, @Param("nurseName")String nurseName, @Param("regionIds")List<String> regionIds, @Param("schedulingStatus")Integer schedulingStatus);

    List<String> pageSurgicalId(Page<SurgicalVo> page, @Param("time")String time, @Param("masterDoctorName")String masterDoctorName, @Param("schedulingStatus")Integer schedulingStatus,@Param("regionId") String regionId);

    List<RoomSchedulingVO> listScheduling(@Param("query") SchedulingQuery query);

    List<WnReadHandNumbness> pageThirdSurgical(@Param("query") SurgicalQuery query, IPage<WnReadHandNumbness> page);

    List<RoomSurgicalAndEnvVO> listRoomSurgicalAndEnv(@Param("query") SurgicalAndEnvQuery query);

    List<RoomEnvVO> listRoomEnv(@Param("query")RoomEnvQuery query);
}
